package com.zhao.dao;

import com.zhao.pojo.User;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {
    //登录
    User selectUserByPWD(User user);
    //查全部
    List<User> selectAllUser();
    //增加
    int addUser(User user);
    //根据id查
    User selectUserById(@Param("id") int id);
    //根据id更新
    int updateById(User user);
    //新增
    int deleteUser(@Param("id") int id);
}